/**
 * state:user
 */
import actions from '../../constant/actionTypes'
const { ACTION_GET_USER_INFO } = actions;
export default function userInfoReducer(state = { userName: 'chen', notifyCount: 6}, action) {
    switch (action.type) {
        case ACTION_GET_USER_INFO:
            return { ...state, ...action.payload };
        default:
            return state;
    }

}


